
package main

import (
	"fmt"
	"bufio"
	"os"
	"log"
)

func main(){
	fmt.Println("read from cmd example start")
	
	running:=true
	reader:=bufio.NewReader(os.Stdin)
	for running {
		data,_,_:=reader.ReadLine()
		command:=string(data)
		if command=="stop"{
			running=false
		}
		log.Println("command",command)
		
	}
	
	fmt.Println("read from cmd example start")
}